#include "widget.h"
#include "ui_widget.h"
#include "QPushButton"
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QPushButton * btn1 = new QPushButton(this);
    btn1->setText("hello world");
    btn1->move(200,300);
    QPushButton * btn2 = new QPushButton(this);
    btn2->setText("Hello QT");
}

Widget::~Widget()
{
    delete ui;
}
